package com.example.kaogong.sys.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @description: 用户注册传输对象
 * @author: 徐文升
 * @create: 2022-03-27 00:57
 **/

@Data
@EqualsAndHashCode
@ApiModel(value = "RegisterDto对象", description = "用户注册传输对象")
public class RegisterDto {
    @NotNull(message = "角色编号不能为空")
    @ApiModelProperty(value = "角色编号(学生-3，教师-2)", required = true)
    private Integer roleId;

    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名", required = true)
    private String username;

    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(value = "密码", required = true)
    private String password;

    @NotBlank(message = "姓名不能为空")
    @ApiModelProperty(value = "姓名", required = true)
    private String name;

    @NotNull(message = "性别不能为空")
    @ApiModelProperty(value = "性别(男-1，女-2)", required = true)
    private Integer gender;

    @NotNull(message = "年龄不能为空")
    @ApiModelProperty(value = "年龄", required = true)
    private Integer age;

    @NotBlank(message = "联系电话不能为空")
    @ApiModelProperty(value = "联系电话", required = true)
    private String tel;

    @NotBlank(message = "地址不能为空")
    @ApiModelProperty(value = "地址", required = true)
    private String address;

    @ApiModelProperty(value = "职位编号(教师特有属性)")
    private Integer postId;
}
